home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Frameworks / SCAPI 0.85 / Spunk Cross API 1.0 / MacSCAPI / Headers / SCAPIApp.h next >
Encoding:
Text File  |  1997-06-17  |  1.9 KB  |  84 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    SCAPIApp.h                   ©1997 Spunk Cross         All rights reserved.
  3. // ===========================================================================
  4.  
  5. #ifndef SCAPIAPP_H
  6. #define SCAPIAPP_H
  7.  
  8. #include "SCAPICommonIncludes.h"
  9. #include "SCAPIMenuBar.h"
  10.  
  11.  
  12. // ---------------------------------------------------------------------------
  13. //        • SCAPIApp Class
  14. // ---------------------------------------------------------------------------
  15.  
  16. class SCAPIApp : public LApplication
  17. {
  18.     friend class SCAPIWindow;
  19.  
  20.     // ===========================================================
  21.     // === Spunk Cross API, these are the routines you can use ===
  22.     // ===========================================================
  23.     
  24.         // • Constructor
  25.         // -------------
  26.         
  27.     public:
  28.     
  29.         SCAPIApp(int*    argcP, char***    argvP);
  30.         
  31.         
  32.         // • Member functions
  33.         // ------------------
  34.         
  35.     public:
  36.         
  37.         void                AssociateMenuBar(SCAPIMenuBar*    inMenuBarP);
  38.     
  39.     
  40.     protected:
  41.     
  42.         virtual void        ExecuteCommand(int    inCommand);
  43.         
  44.         virtual void        CommandStatus(    int        inCommand,
  45.                                             bool    &outEnabled,
  46.                                             int        &outMark,
  47.                                             char*    outName            );
  48.         
  49.         
  50.     // =================================
  51.     // === Internal part, do not use ===
  52.     // =================================
  53.         
  54.         // • Member functions
  55.         // ------------------
  56.         
  57.     private:
  58.         
  59.         virtual Boolean        ObeyCommand(    CommandT    inCommand,
  60.                                             void*        ioParam        );    
  61.                                             
  62.         virtual void        FindCommandStatus(    CommandT    inCommand,
  63.                                                 Boolean        &outEnabled,
  64.                                                 Boolean        &outUsesMark,
  65.                                                 Char16        &outMark,
  66.                                                 Str255        outName            );
  67.                                                 
  68.         void                FreeMenuBar();
  69.         
  70.         virtual void        MakeMenuBar();
  71.         
  72.         virtual void        ProcessNextEvent();
  73.                                                 
  74.                                                 
  75.         // • Member variables
  76.         // ------------------
  77.         
  78.     private:
  79.     
  80.         SCAPIMenuBar*        mMenuBarP;
  81.         long                mRefTick;
  82. };
  83.  
  84. #endif